package com.framework.file.model;

import com.framework.common.listener.impl.BaseEntityUpdate;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Data
@Entity
@Table(name = "sys_file")
@org.hibernate.annotations.Table(appliesTo = "sys_file", comment = "文件系统表")
public class SysFile extends BaseEntityUpdate {
    @Column(columnDefinition = "varchar(255) COMMENT '文件名字'")
    private String name;

    @Column(columnDefinition = "varchar(10) COMMENT '文件扩展名(不带.)'")
    private String ext;

    @Column(columnDefinition = "varchar(32) COMMENT '文件uuid标识'")
    private String uid;

    @Column(columnDefinition = "varchar(32) COMMENT '文件创建作者'")
    private String author;

    @Column(columnDefinition = "varchar(32) COMMENT '文件保存桶名'")
    private String bucketName;

    @Column(columnDefinition = "varchar(255) COMMENT '文件保存路径'")
    private String filePath;

    @Column(columnDefinition = "varchar(32) COMMENT '文件所属模块'")
    private String module;

    @Column(columnDefinition = "bigint(20) COMMENT '文件大小'")
    private Long size;

    @Column(columnDefinition = "varchar(32) COMMENT '文件关联表单id'")
    private String form;

    @Column(columnDefinition = "varchar(32) COMMENT '文件关联表单区域'")
    private String part;

    @Column(columnDefinition = "varchar(1) COMMENT '是否删除'")
    private int isDelete;

}
